home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / SDL / include / inline / SDL.h < prev   
Encoding:
C/C++ Source or Header  |  2002-10-27  |  17.8 KB  |  546 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_SDL_H
  4. #define _INLINE_SDL_H
  5.  
  6. // Since we don't need amiga structs here we can avoid including them
  7. #define __INLINE_STUB_H
  8.  
  9. #ifndef __INLINE_MACROS_H
  10. #include <inline/macros.h>
  11. #endif /* !__INLINE_MACROS_H */
  12.  
  13. #ifndef SDL_BASE_NAME
  14. extern struct Library *SDLBase;
  15. #define SDL_BASE_NAME SDLBase
  16. #endif /* !SDL_BASE_NAME */
  17.  
  18. #define SDL_AddTimer(interval, callback, param) \
  19.     LP3(0x1aa, SDL_TimerID, SDL_AddTimer, Uint32, interval, d0, SDL_NewTimerCallback, callback, a0, void *, param, a1, \
  20.     , SDL_BASE_NAME)
  21.  
  22. #define SDL_AllocRW() \
  23.     LP0(0x4e, SDL_RWops *, SDL_AllocRW, \
  24.     , SDL_BASE_NAME)
  25.  
  26. #define SDL_AudioDriverName(namebuf, maxlen) \
  27.     LP2(0x2be, char *, SDL_AudioDriverName, char *, namebuf, a0, int, maxlen, d0, \
  28.     , SDL_BASE_NAME)
  29.  
  30. #define SDL_AudioInit(driver_name) \
  31.     LP1(0x2b2, int, SDL_AudioInit, const char *, driver_name, a0, \
  32.     , SDL_BASE_NAME)
  33.  
  34. #define SDL_AudioQuit() \
  35.     LP0NR(0x2b8, SDL_AudioQuit, \
  36.     , SDL_BASE_NAME)
  37.  
  38. #define SDL_BuildAudioCVT(cvt, src_format, src_channels, src_rate, dst_format, dst_channels, dst_rate) \
  39.     LP7(0x2e2, int, SDL_BuildAudioCVT, SDL_AudioCVT *, cvt, a0, Uint16, src_format, d0, Uint8, src_channels, d1, int, src_rate, d2, Uint16, dst_format, d3, Uint8, dst_channels, d4, int, dst_rate, d5, \
  40.     , SDL_BASE_NAME)
  41.  
  42. #define SDL_ClearError() \
  43.     LP0NR(0x2ac, SDL_ClearError, \
  44.     , SDL_BASE_NAME)
  45.  
  46. #define SDL_CloseAudio() \
  47.     LP0NR(0x300, SDL_CloseAudio, \
  48.     , SDL_BASE_NAME)
  49.  
  50. #define SDL_ConvertAudio(cvt) \
  51.     LP1(0x2e8, int, SDL_ConvertAudio, SDL_AudioCVT *, cvt, a0, \
  52.     , SDL_BASE_NAME)
  53.  
  54. #define SDL_ConvertSurface(src, fmt, flags) \
  55.     LP3(0x11a, SDL_Surface *, SDL_ConvertSurface, SDL_Surface *, src, a0, SDL_PixelFormat *, fmt, a1, Uint32, flags, d0, \
  56.     , SDL_BASE_NAME)
  57.  
  58. #define SDL_CreateCursor(data, mask, w, h, hot_x, hot_y) \
  59.     LP6(0x27c, SDL_Cursor *, SDL_CreateCursor, Uint8 *, data, a0, Uint8 *, mask, a1, int, w, d0, int, h, d1, int, hot_x, d2, int, hot_y, d3, \
  60.     , SDL_BASE_NAME)
  61.  
  62. #define SDL_CreateRGBSurface(flags, width, height, depth, Rmask, Gmask, Bmask, Amask) \
  63.     LP8(0xe4, SDL_Surface *, SDL_CreateRGBSurface, Uint32, flags, d0, int, width, d1, int, height, d2, int, depth, d3, Uint32, Rmask, d4, Uint32, Gmask, d5, Uint32, Bmask, d6, Uint32, Amask, d7, \
  64.     , SDL_BASE_NAME)
  65.  
  66. #define SDL_CreateRGBSurfaceFrom(pixels, width, height, depth, pitch, Rmask, Gmask, Bmask, Amask) \
  67.     LP9(0xea, SDL_Surface *, SDL_CreateRGBSurfaceFrom, void *, pixels, a0, int, width, d0, int, height, d1, int, depth, d2, int, pitch, d3, Uint32, Rmask, d4, Uint32, Gmask, d5, Uint32, Bmask, d6, Uint32, Amask, d7, \
  68.     , SDL_BASE_NAME)
  69.  
  70. #define SDL_CreateThread(fn, data) \
  71.     LP2FP(0x306, SDL_Thread *, SDL_CreateThread, __fpt, fn, a0, void *, data, a1, \
  72.     , SDL_BASE_NAME, int (*__fpt)(void *))
  73.  
  74. #define SDL_CreateYUVOverlay(width, height, format, display) \
  75.     LP4(0x126, SDL_Overlay *, SDL_CreateYUVOverlay, int, width, d0, int, height, d1, Uint32, format, d2, SDL_Surface *, display, a0, \
  76.     , SDL_BASE_NAME)
  77.  
  78. #define SDL_Delay(ms) \
  79.     LP1NR(0x19e, SDL_Delay, Uint32, ms, d0, \
  80.     , SDL_BASE_NAME)
  81.  
  82. #define SDL_DisplayFormat(surface) \
  83.     LP1(0x60, SDL_Surface *, SDL_DisplayFormat, SDL_Surface *, surface, a0, \
  84.     , SDL_BASE_NAME)
  85.  
  86. #define SDL_DisplayFormatAlpha(surface) \
  87.     LP1(0x120, SDL_Surface *, SDL_DisplayFormatAlpha, SDL_Surface *, surface, a0, \
  88.     , SDL_BASE_NAME)
  89.  
  90. #define SDL_DisplayYUVOverlay(overlay, dstrect) \
  91.     LP2(0x138, int, SDL_DisplayYUVOverlay, SDL_Overlay *, overlay, a0, SDL_Rect *, dstrect, a1, \
  92.     , SDL_BASE_NAME)
  93.  
  94. #define SDL_EnableKeyRepeat(delay, interval) \
  95.     LP2(0x24c, int, SDL_EnableKeyRepeat, int, delay, d0, int, interval, d1, \
  96.     , SDL_BASE_NAME)
  97.  
  98. #define SDL_EnableUNICODE(enable) \
  99.     LP1(0x246, int, SDL_EnableUNICODE, int, enable, d0, \
  100.     , SDL_BASE_NAME)
  101.  
  102. #define SDL_EventState(type, state) \
  103.     LP2(0x1e0, Uint8, SDL_EventState, Uint8, type, d0, int, state, d1, \
  104.     , SDL_BASE_NAME)
  105.  
  106. #define SDL_FillRect(dst, dstrect, color) \
  107.     LP3(0x6c, int, SDL_FillRect, SDL_Surface *, dst, a0, SDL_Rect *, dstrect, a1, Uint32, color, d0, \
  108.     , SDL_BASE_NAME)
  109.  
  110. #define SDL_Flip(screen) \
  111.     LP1(0x78, int, SDL_Flip, SDL_Surface *, screen, a0, \
  112.     , SDL_BASE_NAME)
  113.  
  114. #define SDL_FreeCursor(cursor) \
  115.     LP1NR(0x28e, SDL_FreeCursor, SDL_Cursor *, cursor, a0, \
  116.     , SDL_BASE_NAME)
  117.  
  118. #define SDL_FreeRW(area) \
  119.     LP1NR(0x54, SDL_FreeRW, SDL_RWops *, area, a0, \
  120.     , SDL_BASE_NAME)
  121.  
  122. #define SDL_FreeSurface(surface) \
  123.     LP1NR(0x66, SDL_FreeSurface, SDL_Surface *, surface, a0, \
  124.     , SDL_BASE_NAME)
  125.  
  126. #define SDL_FreeWAV(audio_buf) \
  127.     LP1NR(0x2dc, SDL_FreeWAV, Uint8 *, audio_buf, a0, \
  128.     , SDL_BASE_NAME)
  129.  
  130. #define SDL_FreeYUVOverlay(overlay) \
  131.     LP1NR(0x13e, SDL_FreeYUVOverlay, SDL_Overlay *, overlay, a0, \
  132.     , SDL_BASE_NAME)
  133.  
  134. #define SDL_GL_GetAttribute(attr, value) \
  135.     LP2(0x156, int, SDL_GL_GetAttribute, SDL_GLattr, attr, d0, int*, value, a0, \
  136.     , SDL_BASE_NAME)
  137.  
  138. #define SDL_GL_GetProcAddress(proc) \
  139.     LP1(0x14a, void *, SDL_GL_GetProcAddress, const char*, proc, a0, \
  140.     , SDL_BASE_NAME)
  141.  
  142. #define SDL_GL_LoadLibrary(path) \
  143.     LP1(0x144, int, SDL_GL_LoadLibrary, const char *, path, a0, \
  144.     , SDL_BASE_NAME)
  145.  
  146. #define SDL_GL_Lock() \
  147.     LP0NR(0x168, SDL_GL_Lock, \
  148.     , SDL_BASE_NAME)
  149.  
  150. #define SDL_GL_SetAttribute(attr, value) \
  151.     LP2(0x150, int, SDL_GL_SetAttribute, SDL_GLattr, attr, d0, int, value, d1, \
  152.     , SDL_BASE_NAME)
  153.  
  154. #define SDL_GL_SwapBuffers() \
  155.     LP0NR(0x15c, SDL_GL_SwapBuffers, \
  156.     , SDL_BASE_NAME)
  157.  
  158. #define SDL_GL_Unlock() \
  159.     LP0NR(0x16e, SDL_GL_Unlock, \
  160.     , SDL_BASE_NAME)
  161.  
  162. #define SDL_GL_UpdateRects(numrects, rects) \
  163.     LP2NR(0x162, SDL_GL_UpdateRects, int, numrects, d0, SDL_Rect*, rects, a0, \
  164.     , SDL_BASE_NAME)
  165.  
  166. #define SDL_GetAppState() \
  167.     LP0(0x29a, Uint8, SDL_GetAppState, \
  168.     , SDL_BASE_NAME)
  169.  
  170. #define SDL_GetAudioStatus() \
  171.     LP0(0x2ca, SDL_audiostatus, SDL_GetAudioStatus, \
  172.     , SDL_BASE_NAME)
  173.  
  174. #define SDL_GetClipRect(surface, rect) \
  175.     LP2NR(0x114, SDL_GetClipRect, SDL_Surface *, surface, a0, SDL_Rect *, rect, a1, \
  176.     , SDL_BASE_NAME)
  177.  
  178. #define SDL_GetCursor() \
  179.     LP0(0x288, SDL_Cursor *, SDL_GetCursor, \
  180.     , SDL_BASE_NAME)
  181.  
  182. #define SDL_GetError() \
  183.     LP0(0x2a6, char *, SDL_GetError, \
  184.     , SDL_BASE_NAME)
  185.  
  186. #define SDL_GetEventFilter() \
  187.     LP0(0x1da, SDL_EventFilter, SDL_GetEventFilter, \
  188.     , SDL_BASE_NAME)
  189.  
  190. #define SDL_GetGammaRamp(red, green, blue) \
  191.     LP3(0xc6, int, SDL_GetGammaRamp, Uint16 *, red, d0, Uint16 *, green, d1, Uint16 *, blue, d2, \
  192.     , SDL_BASE_NAME)
  193.  
  194. #define SDL_GetKeyName(key) \
  195.     LP1(0x264, char *, SDL_GetKeyName, SDLKey, key, d0, \
  196.     , SDL_BASE_NAME)
  197.  
  198. #define SDL_GetKeyState(numkeys) \
  199.     LP1(0x252, Uint8 *, SDL_GetKeyState, int *, numkeys, a0, \
  200.     , SDL_BASE_NAME)
  201.  
  202. #define SDL_GetModState() \
  203.     LP0(0x258, SDLMod, SDL_GetModState, \
  204.     , SDL_BASE_NAME)
  205.  
  206. #define SDL_GetMouseState(x, y) \
  207.     LP2(0x26a, Uint8, SDL_GetMouseState, int *, x, a0, int *, y, a1, \
  208.     , SDL_BASE_NAME)
  209.  
  210. #define SDL_GetRGB(pixel, format, r, g, b) \
  211.     LP5NR(0xd8, SDL_GetRGB, Uint32, pixel, d0, SDL_PixelFormat *, format, a0, Uint8 *, r, d1, Uint8 *, g, d2, Uint8 *, b, d3, \
  212.     , SDL_BASE_NAME)
  213.  
  214. #define SDL_GetRGBA(pixel, format, r, g, b, a) \
  215.     LP6NR(0xde, SDL_GetRGBA, Uint32, pixel, d0, SDL_PixelFormat *, format, a0, Uint8 *, r, d1, Uint8 *, g, d2, Uint8 *, b, d3, Uint8 *, a, d4, \
  216.     , SDL_BASE_NAME)
  217.  
  218. #define SDL_GetRelativeMouseState(x, y) \
  219.     LP2(0x270, Uint8, SDL_GetRelativeMouseState, int *, x, a0, int *, y, a1, \
  220.     , SDL_BASE_NAME)
  221.  
  222. #define SDL_GetThreadID(thread) \
  223.     LP1(0x312, Uint32, SDL_GetThreadID, SDL_Thread *, thread, a0, \
  224.     , SDL_BASE_NAME)
  225.  
  226. #define SDL_GetTicks() \
  227.     LP0(0x198, Uint32, SDL_GetTicks, \
  228.     , SDL_BASE_NAME)
  229.  
  230. #define SDL_GetVideoInfo() \
  231.     LP0(0x8a, const SDL_VideoInfo *, SDL_GetVideoInfo, \
  232.     , SDL_BASE_NAME)
  233.  
  234. #define SDL_GetVideoSurface() \
  235.     LP0(0xa8, SDL_Surface *, SDL_GetVideoSurface, \
  236.     , SDL_BASE_NAME)
  237.  
  238. #define SDL_RealInit(flags) \
  239.     LP1(0x1e, int, SDL_Init, Uint32, flags, d0, \
  240.     , SDL_BASE_NAME)
  241.  
  242. #define SDL_InitSubSystem(flags) \
  243.     LP1(0x2a, int, SDL_InitSubSystem, Uint32, flags, d0, \
  244.     , SDL_BASE_NAME)
  245.  
  246. #define SDL_JoystickClose(joystick) \
  247.     LP1NR(0x240, SDL_JoystickClose, SDL_Joystick *, joystick, a0, \
  248.     , SDL_BASE_NAME)
  249.  
  250. #define SDL_JoystickEventState(state) \
  251.     LP1(0x222, int, SDL_JoystickEventState, int, state, d0, \
  252.     , SDL_BASE_NAME)
  253.  
  254. #define SDL_JoystickGetAxis(joystick, axis) \
  255.     LP2(0x228, Sint16, SDL_JoystickGetAxis, SDL_Joystick *, joystick, a0, int, axis, d0, \
  256.     , SDL_BASE_NAME)
  257.  
  258. #define SDL_JoystickGetBall(joystick, ball, dx, dy) \
  259.     LP4(0x234, int, SDL_JoystickGetBall, SDL_Joystick *, joystick, a0, int, ball, d0, int *, dx, a1, int *, dy, a2, \
  260.     , SDL_BASE_NAME)
  261.  
  262. #define SDL_JoystickGetButton(joystick, button) \
  263.     LP2(0x23a, Uint8, SDL_JoystickGetButton, SDL_Joystick *, joystick, a0, int, button, d0, \
  264.     , SDL_BASE_NAME)
  265.  
  266. #define SDL_JoystickGetHat(joystick, hat) \
  267.     LP2(0x22e, Uint8, SDL_JoystickGetHat, SDL_Joystick *, joystick, a0, int, hat, d0, \
  268.     , SDL_BASE_NAME)
  269.  
  270. #define SDL_JoystickIndex(joystick) \
  271.     LP1(0x1fe, int, SDL_JoystickIndex, SDL_Joystick *, joystick, a0, \
  272.     , SDL_BASE_NAME)
  273.  
  274. #define SDL_JoystickName(device_index) \
  275.     LP1(0x1ec, const char *, SDL_JoystickName, int, device_index, d0, \
  276.     , SDL_BASE_NAME)
  277.  
  278. #define SDL_JoystickNumAxes(joystick) \
  279.     LP1(0x204, int, SDL_JoystickNumAxes, SDL_Joystick *, joystick, a0, \
  280.     , SDL_BASE_NAME)
  281.  
  282. #define SDL_JoystickNumBalls(joystick) \
  283.     LP1(0x20a, int, SDL_JoystickNumBalls, SDL_Joystick *, joystick, a0, \
  284.     , SDL_BASE_NAME)
  285.  
  286. #define SDL_JoystickNumButtons(joystick) \
  287.     LP1(0x216, int, SDL_JoystickNumButtons, SDL_Joystick *, joystick, a0, \
  288.     , SDL_BASE_NAME)
  289.  
  290. #define SDL_JoystickNumHats(joystick) \
  291.     LP1(0x210, int, SDL_JoystickNumHats, SDL_Joystick *, joystick, a0, \
  292.     , SDL_BASE_NAME)
  293.  
  294. #define SDL_JoystickOpen(device_index) \
  295.     LP1(0x1f2, SDL_Joystick *, SDL_JoystickOpen, int, device_index, d0, \
  296.     , SDL_BASE_NAME)
  297.  
  298. #define SDL_JoystickOpened(device_index) \
  299.     LP1(0x1f8, int, SDL_JoystickOpened, int, device_index, d0, \
  300.     , SDL_BASE_NAME)
  301.  
  302. #define SDL_JoystickUpdate() \
  303.     LP0NR(0x21c, SDL_JoystickUpdate, \
  304.     , SDL_BASE_NAME)
  305.  
  306. #define SDL_KillThread(thread) \
  307.     LP1NR(0x31e, SDL_KillThread, SDL_Thread *, thread, a0, \
  308.     , SDL_BASE_NAME)
  309.  
  310. #define SDL_Linked_Version() \
  311.     LP0(0x324, const SDL_version *, SDL_Linked_Version, \
  312.     , SDL_BASE_NAME)
  313.  
  314. #define SDL_ListModes(format, flags) \
  315.     LP2(0xb4, SDL_Rect **, SDL_ListModes, SDL_PixelFormat *, format, a0, Uint32, flags, d0, \
  316.     , SDL_BASE_NAME)
  317.  
  318. #define SDL_LoadBMP_RW(src, freesrc) \
  319.     LP2(0x5a, SDL_Surface *, SDL_LoadBMP_RW, SDL_RWops *, src, a0, int, freesrc, d0, \
  320.     , SDL_BASE_NAME)
  321.  
  322. #define SDL_LoadWAV_RW(src, freesrc, spec, audio_buf, audio_len) \
  323.     LP5(0x2d6, SDL_AudioSpec *, SDL_LoadWAV_RW, SDL_RWops *, src, a0, int, freesrc, d0, SDL_AudioSpec *, spec, a1, Uint8 **, audio_buf, a2, Uint32 *, audio_len, a3, \
  324.     , SDL_BASE_NAME)
  325.  
  326. #define SDL_LockAudio() \
  327.     LP0NR(0x2f4, SDL_LockAudio, \
  328.     , SDL_BASE_NAME)
  329.  
  330. #define SDL_LockSurface(surface) \
  331.     LP1(0xf0, int, SDL_LockSurface, SDL_Surface *, surface, a0, \
  332.     , SDL_BASE_NAME)
  333.  
  334. #define SDL_LockYUVOverlay(overlay) \
  335.     LP1(0x12c, int, SDL_LockYUVOverlay, SDL_Overlay *, overlay, a0, \
  336.     , SDL_BASE_NAME)
  337.  
  338. #define SDL_MapRGB(format, r, g, b) \
  339.     LP4(0x96, Uint32, SDL_MapRGB, SDL_PixelFormat *, format, a0, Uint8, r, d0, Uint8, g, d1, Uint8, b, d2, \
  340.     , SDL_BASE_NAME)
  341.  
  342. #define SDL_MapRGBA(format, r, g, b, a) \
  343.     LP5(0x9c, Uint32, SDL_MapRGBA, SDL_PixelFormat *, format, a0, Uint8, r, d0, Uint8, g, d1, Uint8, b, d2, Uint8, a, d3, \
  344.     , SDL_BASE_NAME)
  345.  
  346. #define SDL_MixAudio(dst, src, len, volume) \
  347.     LP4NR(0x2ee, SDL_MixAudio, Uint8 *, dst, a0, const Uint8 *, src, a1, Uint32, len, d0, int, volume, d1, \
  348.     , SDL_BASE_NAME)
  349.  
  350. #define SDL_NumJoysticks() \
  351.     LP0(0x1e6, int, SDL_NumJoysticks, \
  352.     , SDL_BASE_NAME)
  353.  
  354. #define SDL_OpenAudio(desired, obtained) \
  355.     LP2(0x2c4, int, SDL_OpenAudio, SDL_AudioSpec *, desired, a0, SDL_AudioSpec *, obtained, a1, \
  356.     , SDL_BASE_NAME)
  357.  
  358. #define SDL_PauseAudio(pause_on) \
  359.     LP1NR(0x2d0, SDL_PauseAudio, int, pause_on, d0, \
  360.     , SDL_BASE_NAME)
  361.  
  362. #define SDL_PeepEvents(events, numevents, action, mask) \
  363.     LP4(0x1c8, int, SDL_PeepEvents, SDL_Event *, events, a0, int, numevents, d0, SDL_eventaction, action, d1, Uint32, mask, d2, \
  364.     , SDL_BASE_NAME)
  365.  
  366. #define SDL_PollEvent(event) \
  367.     LP1(0x1bc, int, SDL_PollEvent, SDL_Event *, event, a0, \
  368.     , SDL_BASE_NAME)
  369.  
  370. #define SDL_PumpEvents() \
  371.     LP0NR(0x1b6, SDL_PumpEvents, \
  372.     , SDL_BASE_NAME)
  373.  
  374. #define SDL_PushEvent(event) \
  375.     LP1(0x1ce, int, SDL_PushEvent, SDL_Event *, event, a0, \
  376.     , SDL_BASE_NAME)
  377.  
  378. #define SDL_RealQuit() \
  379.     LP0NR(0x24, SDL_Quit, \
  380.     , SDL_BASE_NAME)
  381.  
  382. #define SDL_QuitSubSystem(flags) \
  383.     LP1NR(0x30, SDL_QuitSubSystem, Uint32, flags, d0, \
  384.     , SDL_BASE_NAME)
  385.  
  386. #define SDL_RWFromFP(fp, autoclose) \
  387.     LP2(0x42, SDL_RWops *, SDL_RWFromFP, FILE *, fp, a0, int, autoclose, d0, \
  388.     , SDL_BASE_NAME)
  389.  
  390. #define SDL_RWFromFile(file, mode) \
  391.     LP2(0x3c, SDL_RWops *, SDL_RWFromFile, const char *, file, a0, const char *, mode, a1, \
  392.     , SDL_BASE_NAME)
  393.  
  394. #define SDL_RWFromMem(mem, size) \
  395.     LP2(0x48, SDL_RWops *, SDL_RWFromMem, void *, mem, a0, int, size, d0, \
  396.     , SDL_BASE_NAME)
  397.  
  398. #define SDL_RemoveTimer(t) \
  399.     LP1(0x1b0, SDL_bool, SDL_RemoveTimer, SDL_TimerID, t, d0, \
  400.     , SDL_BASE_NAME)
  401.  
  402. #define SDL_SaveBMP_RW(surface, dst, freedst) \
  403.     LP3(0xfc, int, SDL_SaveBMP_RW, SDL_Surface *, surface, a0, SDL_RWops *, dst, a1, int, freedst, d0, \
  404.     , SDL_BASE_NAME)
  405.  
  406. #define SDL_SetAlpha(surface, flag, alpha) \
  407.     LP3(0x108, int, SDL_SetAlpha, SDL_Surface *, surface, a0, Uint32, flag, d0, Uint8, alpha, d1, \
  408.     , SDL_BASE_NAME)
  409.  
  410. #define SDL_SetClipRect(surface, rect) \
  411.     LP2(0x10e, SDL_bool, SDL_SetClipRect, SDL_Surface *, surface, a0, const SDL_Rect *, rect, a1, \
  412.     , SDL_BASE_NAME)
  413.  
  414. #define SDL_SetColorKey(surface, flag, key) \
  415.     LP3(0x102, int, SDL_SetColorKey, SDL_Surface *, surface, a0, Uint32, flag, d0, Uint32, key, d1, \
  416.     , SDL_BASE_NAME)
  417.  
  418. #define SDL_SetColors(surface, colors, firstcolor, ncolors) \
  419.     LP4(0xcc, int, SDL_SetColors, SDL_Surface *, surface, a0, SDL_Color *, colors, a1, int, firstcolor, d0, int, ncolors, d1, \
  420.     , SDL_BASE_NAME)
  421.  
  422. #define SDL_SetCursor(cursor) \
  423.     LP1NR(0x282, SDL_SetCursor, SDL_Cursor *, cursor, a0, \
  424.     , SDL_BASE_NAME)
  425.  
  426. #define SDL_SetError(fmt, args...) \
  427.     ({unsigned long _tags[] = { args }; SDL_SetErrorA(fmt, (void *)_tags);})    
  428.  
  429. #define SDL_SetErrorA(fmt, arglist) \
  430.     LP2NR(0x2a0, SDL_SetErrorA, const char *, fmt, a0, unsigned long *, arglist, a1, \
  431.     , SDL_BASE_NAME)
  432.  
  433. #define SDL_SetEventFilter(filter) \
  434.     LP1NR(0x1d4, SDL_SetEventFilter, SDL_EventFilter, filter, d0, \
  435.     , SDL_BASE_NAME)
  436.  
  437. #define SDL_SetGamma(red, green, blue) \
  438.     LP3(0xba, int, SDL_SetGamma, float, red, d0, float, green, d1, float, blue, d2, \
  439.     , SDL_BASE_NAME)
  440.  
  441. #define SDL_SetGammaRamp(red, green, blue) \
  442.     LP3(0xc0, int, SDL_SetGammaRamp, Uint16 *, red, d0, Uint16 *, green, d1, Uint16 *, blue, d2, \
  443.     , SDL_BASE_NAME)
  444.  
  445. #define SDL_SetModState(modstate) \
  446.     LP1NR(0x25e, SDL_SetModState, SDLMod, modstate, d0, \
  447.     , SDL_BASE_NAME)
  448.  
  449. #define SDL_SetPalette(surface, flags, colors, firstcolor, ncolors) \
  450.     LP5(0xd2, int, SDL_SetPalette, SDL_Surface *, surface, a0, int, flags, d0, SDL_Color *, colors, a1, int, firstcolor, d1, int, ncolors, d2, \
  451.     , SDL_BASE_NAME)
  452.  
  453. #define SDL_SetTimer(interval, callback) \
  454.     LP2(0x1a4, int, SDL_SetTimer, Uint32, interval, d0, SDL_TimerCallback, callback, a0, \
  455.     , SDL_BASE_NAME)
  456.  
  457. #define SDL_SetVideoMode(width, height, bpp, flags) \
  458.     LP4(0x90, SDL_Surface *, SDL_SetVideoMode, int, width, d0, int, height, d1, int, bpp, d2, Uint32, flags, d3, \
  459.     , SDL_BASE_NAME)
  460.  
  461. #define SDL_ShowCursor(toggle) \
  462.     LP1(0x294, int, SDL_ShowCursor, int, toggle, d0, \
  463.     , SDL_BASE_NAME)
  464.  
  465. #define SDL_SoftStretch(src, srcrect, dest, dstrect) \
  466.     LP4(0x32a, int, SDL_SoftStretch, SDL_Surface *, src, a0, SDL_Rect *, srcrect, a1, SDL_Surface *, dest, a2, SDL_Rect *, dstrect, a3, \
  467.     , SDL_BASE_NAME)
  468.  
  469. #define SDL_ThreadID() \
  470.     LP0(0x30c, Uint32, SDL_ThreadID, \
  471.     , SDL_BASE_NAME)
  472.  
  473. #define SDL_UnlockAudio() \
  474.     LP0NR(0x2fa, SDL_UnlockAudio, \
  475.     , SDL_BASE_NAME)
  476.  
  477. #define SDL_UnlockSurface(surface) \
  478.     LP1NR(0xf6, SDL_UnlockSurface, SDL_Surface *, surface, a0, \
  479.     , SDL_BASE_NAME)
  480.  
  481. #define SDL_UnlockYUVOverlay(overlay) \
  482.     LP1NR(0x132, SDL_UnlockYUVOverlay, SDL_Overlay *, overlay, a0, \
  483.     , SDL_BASE_NAME)
  484.  
  485. #define SDL_UpdateRect(screen, x, y, w, h) \
  486.     LP5NR(0x84, SDL_UpdateRect, SDL_Surface *, screen, a0, Sint32, x, d0, Sint32, y, d1, Uint32, w, d2, Uint32, h, d3, \
  487.     , SDL_BASE_NAME)
  488.  
  489. #define SDL_UpdateRects(screen, numrects, rects) \
  490.     LP3NR(0x7e, SDL_UpdateRects, SDL_Surface *, screen, a0, int, numrects, d0, SDL_Rect *, rects, a1, \
  491.     , SDL_BASE_NAME)
  492.  
  493. #define SDL_UpperBlit(src, srcrect, dst, dstrect) \
  494.     LP4(0x72, int, SDL_UpperBlit, SDL_Surface *, src, a0, SDL_Rect *, srcrect, d0, SDL_Surface *, dst, a1, SDL_Rect *, dstrect, d1, \
  495.     , SDL_BASE_NAME)
  496.  
  497. #define SDL_VideoDriverName(namebuf, maxlen) \
  498.     LP2(0xa2, char *, SDL_VideoDriverName, char *, namebuf, a0, int, maxlen, d0, \
  499.     , SDL_BASE_NAME)
  500.  
  501. #define SDL_VideoModeOK(width, height, bpp, flags) \
  502.     LP4(0xae, int, SDL_VideoModeOK, int, width, d0, int, height, d1, int, bpp, d2, Uint32, flags, d3, \
  503.     , SDL_BASE_NAME)
  504.  
  505. #define SDL_WM_GetCaption(title, icon) \
  506.     LP2NR(0x17a, SDL_WM_GetCaption, char **, title, a0, char **, icon, a1, \
  507.     , SDL_BASE_NAME)
  508.  
  509. #define SDL_WM_GrabInput(mode) \
  510.     LP1(0x192, SDL_GrabMode, SDL_WM_GrabInput, SDL_GrabMode, mode, d0, \
  511.     , SDL_BASE_NAME)
  512.  
  513. #define SDL_WM_IconifyWindow() \
  514.     LP0(0x186, int, SDL_WM_IconifyWindow, \
  515.     , SDL_BASE_NAME)
  516.  
  517. #define SDL_WM_SetCaption(title, icon) \
  518.     LP2NR(0x174, SDL_WM_SetCaption, const char *, title, a0, const char *, icon, a1, \
  519.     , SDL_BASE_NAME)
  520.  
  521. #define SDL_WM_SetIcon(icon, mask) \
  522.     LP2NR(0x180, SDL_WM_SetIcon, SDL_Surface *, icon, a0, Uint8 *, mask, a1, \
  523.     , SDL_BASE_NAME)
  524.  
  525. #define SDL_WM_ToggleFullScreen(surface) \
  526.     LP1(0x18c, int, SDL_WM_ToggleFullScreen, SDL_Surface *, surface, a0, \
  527.     , SDL_BASE_NAME)
  528.  
  529. #define SDL_WaitEvent(event) \
  530.     LP1(0x1c2, int, SDL_WaitEvent, SDL_Event *, event, a0, \
  531.     , SDL_BASE_NAME)
  532.  
  533. #define SDL_WaitThread(thread, status) \
  534.     LP2NR(0x318, SDL_WaitThread, SDL_Thread *, thread, a0, int *, status, a1, \
  535.     , SDL_BASE_NAME)
  536.  
  537. #define SDL_WarpMouse(x, y) \
  538.     LP2NR(0x276, SDL_WarpMouse, Uint16, x, d0, Uint16, y, d1, \
  539.     , SDL_BASE_NAME)
  540.  
  541. #define SDL_WasInit(flags) \
  542.     LP1(0x36, Uint32, SDL_WasInit, Uint32, flags, d0, \
  543.     , SDL_BASE_NAME)
  544.  
  545. #endif /* !_INLINE_SDL_H */
  546.